/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avu.tp.assign2.question1.inheritance;

/**
 *
 * @author Malotana
 */
public class Computer {

    private int processor;
    private int speed;

    public Computer(int p, int s) {
        processor = p;
        speed = s;
    }

    public int getProcessor() {
        return processor;
    }

    public void setProcessor(int processor) {
        this.processor = processor;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public String toString() {
        return " Computer processor: " + processor + "\n Computer speed: " + speed;
    }
}
